package ws.very.util.lang
import ShortTypes._
trait Mockable {
  def enableMock: B
  @inline
  def mock2Default[R, D >: R](elseDo: => R)(default: D) =
    if (enableMock) default
    else elseDo
  @inline
  def mock(elseDo: => Unit) =
    if (!enableMock) elseDo
}